import 'package:dio/dio.dart';
import 'package:myjd/api/index.dart';

class HomeApi {
  /**
   * 这个请求的是熊猫优选，是个例外
   */
  static getBannersAndLikes() async {
    var apiUrl = "http://www.xiongmaoyouxuan.com/api/tab/1?start=0";
    Response result = await Dio().get(apiUrl);
    return result;
  }

  /**
   * 获取热门商品数据
   */
  static getHots() async {
    Response result =
        await ApiBase.dio.get("http://jd.itying.com/api/plist?is_best=1");
    return result;
  }
}
